//
//  ViewController.m
//  InheritedSingleton
//
//  Created by Xwoder on 2017/12/1.
//  Copyright © 2017年 Xwoder. All rights reserved.
//

#import "ViewController.h"
#import "Instance.h"
#import "SubInstanceA.h"
#import "SubInstanceB.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    Instance *instance1 = [Instance sharedInstance];
    Instance *instance2 = [Instance sharedInstance];
    NSLog(@"instance1 = %@, instance2 = %@", instance1, instance2);

    SubInstanceA *instanceA1 = [SubInstanceA sharedInstance];
    SubInstanceA *instanceA2 = [SubInstanceA sharedInstance];
    NSLog(@"instanceA1 = %@, instanceA2 = %@", instanceA1, instanceA2);

    SubInstanceB *instanceB1 = [SubInstanceB sharedInstance];
    SubInstanceB *instanceB2 = [SubInstanceB sharedInstance];
    NSLog(@"instanceB1 = %@, instanceB2 = %@", instanceB1, instanceB2);
}

@end
